package main

import (
	"github.com/astaxie/beego"
	_ "models"  //引入数据库
	_ "routers" //引入路由
)

func init() {
	//静态目录映射配置
	beego.BConfig.WebConfig.DirectoryIndex = true
	//静态目录映射
	staticDir := beego.BConfig.WebConfig.StaticDir
	staticDir["/static"] = "views/static"
	staticDir["/swagger"] = "swagger" //swagger 目录映射

}

func main() {
	beego.Run()
}
